<template>
  <div class="app-content">
    <dk-form :form-data="formData" />
  </div>
</template>

<script>
import { getForm } from '@/api/system/config'

export default {
  name: 'ConfigForm',
  props: {
    value: {
      default: '',
      type: String
    },
    configKey: {
      default: 'workOpenWechat',
      type: String
    }
  },
  data() {
    return {
      formData: null
    }
  },
  computed: {},
  mounted() {
    getForm(this.configKey).then((res) => {
      this.formData = res.data
    })
  },
  methods: {}
}
</script>

<style scoped lang="scss"></style>
